

import 'package:elephant_fish/dao/login_dao.dart';
import 'package:elephant_fish/http/core/hi_net.dart';
import 'package:elephant_fish/http/request/base_request.dart';
import 'package:elephant_fish/http/request/room_classify_request.dart';
import 'package:elephant_fish/util/TxUtils.dart';
import 'package:shared_preferences/shared_preferences.dart';

class RoomClassifyDao{
  static getRoomClassify(int type){
    return _getRoomClassify(type);
  }

  static _getRoomClassify(int type) async {
    SharedPreferences prefs = await SharedPreferences.getInstance();
    String appToken = prefs.getString('app-token');
    BaseRequest request = RoomClassifyRequest();
    request.add('type', type).addHeader('usertoken',appToken);
    var result = await HiNet.getInstance().fire(request);
    print(result);
    return result;

  }
}